
#include "4.17.h"
#include <string.h>
#include <unistd.h>

double totle =1024.0;
double speed=1.0;

void download()
{
  double current=0;
  while(current<= totle)
  {
    test_v2(totle,current);
    usleep(3000);
    current+=speed;
  }
  printf("\ndownload %.2lf\n",current);
}

int main()
{
  //test_v1();
  //
  download();
  download();
  download();
  return 0;
}
